package com.base.service.impl;

import com.base.mapper.voipmapper.UsersRebateMapper;
import com.base.po.voip.UsersRebate;
import com.base.po.voip.UsersRebateExample;
import com.base.service.UsersRebateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("usersRebateService")
public class UsersRebateServiceImpl implements UsersRebateService {
	
	@Autowired
	private UsersRebateMapper usersRebateMapper;

	@Override
	public int countByExample(UsersRebateExample example) {
		return usersRebateMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(UsersRebateExample example) {
		return usersRebateMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return usersRebateMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(UsersRebate record) {
		return usersRebateMapper.insert(record);
	}

	@Override
	public int insertSelective(UsersRebate record) {
		return usersRebateMapper.insertSelective(record);
	}

	@Override
	public List<UsersRebate> selectByExample(UsersRebateExample example) {
		return usersRebateMapper.selectByExample(example);
	}

	@Override
	public UsersRebate selectByPrimaryKey(Integer id) {
		return usersRebateMapper.selectByPrimaryKey(id);
	}

	@Override
	public UsersRebate selectByParentId(String parentid, Integer level) {
		return usersRebateMapper.selectByParentId(parentid, level);
	}

	@Override
	public int updateByExampleSelective(UsersRebate record, UsersRebateExample example) {
		return usersRebateMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(UsersRebate record, UsersRebateExample example) {
		return usersRebateMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(UsersRebate record) {
		return usersRebateMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(UsersRebate record) {
		return usersRebateMapper.updateByPrimaryKey(record);
	}
}
